using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Shpm.App.Master.Dao;
using Shpm.App.Master.Bean;

/// <summary>
/// Summary description for CommonDataExists
/// </summary>
namespace Shpm.App.Commons.Utils
{
    public class CommonDataExists
    {
        public CommonDataExists()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static bool CheckEmployeeID(string id)
        {
            if (string.IsNullOrEmpty(id))
                return true;

            EmployeeDao dao = new EmployeeDao();
            EmployeeBean bean = new EmployeeBean();
            bean.EmployeeId = id;
            if (dao.GetEmployee(bean) == null)
                return false;

            return true;

        }
    }
}